<?php

namespace Home\Controller;

use Think\Controller;
use Think\Log;

use Home\Model\TaskModel;

class IndexController extends Controller {

    public function index() {
        $this->display();
    }

    public function _empty() {
        echo "empty";
    }

    public function tasks() {
        //top5?
        $task = M('Task');
        $list = $task->order('ID desc')->limit(5)->select();
        $this->assign("tasks", $list);
        $this->display('tasks');
    }

    public function rightSideBar() {

        $this->display('rightSideBar');
    }

}
